package cn.wxq.daily.empdailymgforserve.service.impl;

import cn.wxq.daily.empdailymgforserve.domain.AbilityPaper;
import cn.wxq.daily.empdailymgforserve.mapper.AbilityPaperDao;
import cn.wxq.daily.empdailymgforserve.service.AbilityPaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 试卷业务
 */
@Service
public class AbilityPaperServiceImpl implements AbilityPaperService{
    @Autowired
    private AbilityPaperDao abilityPaperDao;
    @Override
    public int addPaper(AbilityPaper abilityPaper) {
        return abilityPaperDao.addPaper(abilityPaper);
    }

    @Override
    public List<AbilityPaper> findPaperByPage(AbilityPaper abilityPaper) {
        return abilityPaperDao.findPaperByPage(abilityPaper);
    }

    @Override
    public int update(AbilityPaper abilityPaper) {
        return abilityPaperDao.update(abilityPaper);
    }

    @Override
    public int delete(Integer alityPaperId) {
        return abilityPaperDao.delete(alityPaperId);
    }
}
